package com.exchange.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.exchange.entity.pojo.DetailPower;
import com.exchange.entity.vo.DetailPowerStatusVo;
import com.exchange.mapper.DetailPowerMapper;
import com.exchange.service.DetailPowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【detail_power】的数据库操作Service实现
* @createDate 2024-04-25 20:02:10
*/
@Service
public class DetailPowerServiceImpl extends ServiceImpl<DetailPowerMapper, DetailPower>
    implements DetailPowerService{
    @Autowired
    private DetailPowerMapper detailPowerMapper;
    @Override
    public Page<DetailPowerStatusVo> findAll(Integer offset,Integer pageSize,Integer mid,Integer id,Integer pid,Integer status) {
        return this.detailPowerMapper.findAll(new Page<>(offset,pageSize),mid,id,pid,status);
    }

    @Override
    public DetailPower findId(Integer id) {
        return this.detailPowerMapper.findId(id);
    }
}




